//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "aisuppress\main.sqf"
#include <functions\core_macros.h>

TRACE("Start");
if (isServer) then {
	GVAR(BDETECT_PVEH) = [];
	publicVariable QGVAR(BDETECT_PVEH);
};
QGVAR(BDETECT_PVEH) addPublicVariableEventHandler FUNC(runEvent);
GVAR(ObjectStore) = "Land_HelipadEmpty_F" createVehicleLocal [0,0,0];
GVAR(ObjectStore) allowDamage false;

if (!isnil "aisup_VisualDebug") then {
	GVAR(DEBUG_SPHERE) = aisup_VisualDebug == 1;
	GVAR(DEBUG_MOVE) = aisup_VisualDebug == 1;
};

[0,"BulletDetected",FUNC(bulletHandler)] call FUNC(registerEvent);

if (!isDedicated && hasInterface) then {
	0 spawn {
		sleep 5; // wait some seconds if you want to load other scripts
		call bdetect_fnc_init;
	};
};
GVAR(FSM_ID) = [] execFSM "tmf\support\modules\aisuppress\aisuppress.fsm";
TRACE("End");